package com.swx.identityservice.service.impl;


import com.swx.identityservice.mapper.ScbpUserPermissionMapper;
import com.swx.identityservice.models.ScbpUserPermission;
import com.swx.identityservice.service.ScbpUserPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @version V1.0.0
 * @date 2018/6/4 0004 23:26
 */
@Service
public class ScbpUserPermissionServiceImpl extends CrudServiceImpl<ScbpUserPermission> implements ScbpUserPermissionService {

    @Autowired
    private ScbpUserPermissionMapper scbpUserPermissionMapper;

    @Override
    public int deletePermissionByUserId(Integer id) {
        return scbpUserPermissionMapper.deletePermissionByUserId(id);
    }
    @Override
    public int selectCountByUserId(Integer id) {
        return scbpUserPermissionMapper.selectCountByUserId(id);
    }
    @Override
    public List<ScbpUserPermission> getpermissionbyuserid(Integer id) { return scbpUserPermissionMapper.getpermissionbyuserid(id);  }

}


